% Set busca=Server.CreateObject("ADODB.Recordset") Set ot=Server.CreateObject("ADODB.Recordset") cantidadregistros=10 if request.querystring("paginaactual")<>"" then mostrarpagina=request.querystring("paginaactual") else mostrarpagina=1 end if Set rs=Server.CreateObject("ADODB.Recordset") Set rs1=Server.CreateObject("ADODB.Recordset") Set rs2=Server.CreateObject("ADODB.Recordset") rs1.cachesize=60 if request.querystring("c")="1" or request.querystring("c")=1 then sqlp="SELECT * from TITULOS_POLIFONICAS where ver='s' and top10<>0 order by top10" elseif request.querystring("c")="2" or request.querystring("c")=2 then sqlp="SELECT * from TITULOS_POLIFONICAS where ver='s' and novedad='s' order by cod_cancion desc" else sqlp="SELECT * from TITULOS_POLIFONICAS where ver='s' and categoria=" &request.querystring("c")& " order by cod_cancion desc" end if sqlpo=sqlp 'sqlpo="SELECT * from titulos_polifonicas where categoria="&request.querystring("c")&" and ver='s' order by cod_cancion desc" rs1.open sqlpo,conexion,1,1 registros=0 if not rs1.eof then rs1.pagesize=cantidadregistros maxpagina=cint(rs1.pagecount) maxregistros=cint(rs1.pagesize) rs1.absolutepage=mostrarpagina contreg=0 'paginacion cero="0" nombrescript=request.servervariables("script_name") if int(mostrarpagina)<>1 then '--si no es la primer página mostrar botón atrás ref="< " end if for contador=1 to maxpagina If contador>9 then cero="" end if ref=ref & " " & cero & contador & "" else ref=ref & "'>" & cero & contador & "" end if next if int(mostrarpagina)<>int(maxpagina) then '-- si no es la última página ' mostrar botón siguiente ref=ref & " >" end if%>
|
||||||||||||||||||||||||